-- GENERATED SPELL FOR [Dark Caster] --


function spell0_8526(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8526', 3000, 1)
end

function spell1_8526(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(11639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8526', 18000, 1)
end

function Sorts_8526(pUnit, Event)
local choix_sorts_8526 = math.random(0, 1)
if choix_sorts_8526 == 0 then
pUnit:RegisterEvent('spell0_8526', 1, 1)
end
if choix_sorts_8526 == 1 then
pUnit:RegisterEvent('spell1_8526', 1, 1)
end
end

function mob8526_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8526', math.random(1500, 3000), 1)
end

function mob8526_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8526_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8526_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8526, 1, 'mob8526_Action')
RegisterUnitEvent(8526, 2, 'mob8526_Leave')
RegisterUnitEvent(8526, 3, 'mob8526_Kill')
RegisterUnitEvent(8526, 4, 'mob8526_Die')
